package top.yxqz.number2.entity;


/**
 * @author: 余小小
 * @date: 2023/9/12
 * @description：小狗实体类
 */
public class Dog {

    //    姓名
    private String name;
    //    颜色
    private String color;

    public Dog() {
    }

    public Dog(String name, String color) {
        this.name = name;
        this.color = color;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return color
     */
    public String getColor() {
        return color;
    }

    /**
     * 设置
     * @param color
     */
    public void setColor(String color) {
        this.color = color;
    }

    public String toString() {
        return "Dog{name = " + name + ", color = " + color + "}";
    }
}
